import { fetchUrl } from "./config";

const fetchKeywordByName = (languageName: string) => {
  return fetch(`${fetchUrl}/keys/${languageName}`);
};

const fetchUserCodeSnipastes = (userName: string) => {
  return fetch(`${fetchUrl}/se?userName=${userName}`);
};

export { fetchKeywordByName, fetchUserCodeSnipastes };
